//
//  TripleLaserBonus.m
//  iFly
//
//  Created by User-10 on 12/12/14.
//  Copyright (c) 2014 TeamDifferent. All rights reserved.
//

#import "TripleLaserBonus.h"
#import "FireButtonNode.h"

@implementation TripleLaserBonus

+(instancetype)tripleLaserWithPosition:(CGPoint)position {
    TripleLaserBonus* tripleLaser = [super bonusWithImageNamed:@"Linear_Divider.png" andPosition:position];
    
    return tripleLaser;
}

-(void)wasTaken {
    [[SoundHandler sharedSoundPlayer] playSoundWithName:@"TrippleLaser" andType:@"mp3"];
    FireButtonNode* fireButton = (FireButtonNode*)[self.parent childNodeWithName:@"fire"];
    [fireButton equipWeapon:ProjectileTypeTripleLaser];
    [self removeFromParent];
}

@end
